package com.mobile.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hsnn.medstgmini.Constants;
import com.hsnn.medstgmini.sys.model.SysUser;
import com.hsnn.medstgmini.sys.service.SysUserManager;

/**
 * 个人中心首页
 * @author Administrator
 *
 */

@Controller
public class MobileUserCenterController {

	@Autowired
	private SysUserManager userManager;

	@Autowired
	private HttpSession session;
	
	/**
	 * @category 跳转九宫格首页
	 * @date 2015年6月12日
	 * @return
	 */
	@RequestMapping("/mobile/userCenter")
	public String login(HttpServletRequest request) {
		Map<String,Object> userMap = (Map<String, Object>) session.getAttribute(Constants.USERINFO);
		
		if (userMap != null) {
			request.setAttribute("user", userMap);
		}
		return "/mobile/userCenter";
	}
	
}
